package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class ScorePostEventBase{
	boolean[] modified=new boolean[4];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public ScorePostEventBase(){}
	public ScorePostEventBase(java.lang.Long userId,java.lang.Long postId,java.lang.Integer score,java.util.Date dateTime){
		setUserId(userId);
		setPostId(postId);
		setScore(score);
		setDateTime(dateTime);
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setPostId(java.lang.Long postId){
		if(postId!=null) {
			set("postId",postId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getPostId(){
		return (java.lang.Long)get("postId");
	}
	public void setScore(java.lang.Integer score){
		if(score!=null) {
			set("score",score);
			this.modified[2] =true;
		}
	}
	public java.lang.Integer getScore(){
		return (java.lang.Integer)get("score");
	}
	public void setDateTime(java.util.Date dateTime){
		if(dateTime!=null) {
			set("dateTime",dateTime);
			this.modified[3] =true;
		}
	}
	public java.util.Date getDateTime(){
		return (java.util.Date)get("dateTime");
	}
}
